<!-- Begin of titlebar/breadcrumbs -->
<div id="title-bar">
	<ul id="breadcrumbs">
		<li><a href="index.php" title="Home"><span id="bc-home"></span></a></li>
		<li><a href="index.php?module=group_manager">Grup Yönetimi</a></li>
		<li class="no-hover">Grup Düzenle</li>
	</ul>
</div> <!--! end of #title-bar -->

<div class="shadow-bottom shadow-titlebar"></div>

<!-- Begin of #main-content -->
<div id="main-content">
	<div class="container_12">

		<div class="grid_12">
			<h1>Grup Düzenle</h1>
			<p>Bu sayafadan, seçtiğiniz grubun adını ve yetkilerini düzenleyebilirsiniz.</p>
		</div>

		<?php
			if($_POST)
			{
				if($sonuc['sonuc'] == true)
				{
				?>
				<div class="alert success">Grup Düzenlendi.</div>
				<?php
				}
				else
				{
				?>
				<div class="alert error"><?php echo $sonuc['aciklama']; ?></div>
				<?php
				}
			}

		?>

		<div class="grid_6">
			<div class="block-border">
				<div class="block-header">
					<h1>Grup Düzenle</h1><span></span>
				</div>
				<form class="block-content form" action="" method="POST">
					<div class="_100">
						<p><label for="group_name">Grup Adı</label><input id="group_name" name="group_name" class="required" type="text" value="<?php echo $group[0]['group_name']; ?>" /></p>
					</div>

					<div class="_100">
						<p>
							<span class="label">Grup Yetkileri:</span>
							<?php
								foreach($allAuthority as $authority)
								{
								   $check = false;
								   foreach($groupAuthority as $groupAuth)
								   {
										if($groupAuth['method'] == $authority['method'])
										{
											$check = true;
										}
								   }	
								?>
								<label><input type="checkbox" name="authority[]" value="<?php echo $authority['method']; ?>" <?php if($check == true){ echo 'checked="checked"'; } ?> /> <?php echo $authority['note']; ?></label>
								<?php
								}
							?>
						</p>
					</div>

					<div class="clear"></div>
					<div class="block-actions">
						<ul class="actions-left">
							<li><a class="button red" id="reset-validate-form" href="javascript:void(0);">İPTAL</a></li>
						</ul>
						<ul class="actions-right">
							<li><input type="submit" class="button" value="GRUBU DÜZENLE"></li>
						</ul>
					</div>
				</form>
			</div>
		</div>



		<div class="clear height-fix"></div>

	</div></div> <!--! end of #main-content -->